home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-11-30 | 23.5 KB | 530 lines | [TEXT/MPS ] |
- ; File: Private.a
- ;
- ; Copyright: © 1983-1993 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: System 7.1 for ETO #11
- ; Created: Tuesday, March 30, 1993 18:00
- ;
- ;___________________________________________________________________________
-
- IF &TYPE('__INCLUDINGPRIVATE__') = 'UNDEFINED' THEN
- __INCLUDINGPRIVATE__ SET 1
-
-
- IF (&TYPE('PrNonPortable') = 'UNDEFINED') THEN
- PrNonPortable EQU 0
- ENDIF
-
- IF PrNonPortable THEN
-
-
- ;_______________________________________________________________________
- ;
- ; System Equates -- These equates supplement the low-level equates for the
- ; Macintosh hardware and software defined in SysEqu. These equates are private
- ; to Apple Computer, Inc. and should be used solely for building system
- ; software.
- ;
- ;_______________________________________________________________________
-
- ;+ Hardware Address Equates (for 512K through 128K Macs)
-
- ; Unpacked, user versions of parameter ram
-
- SdEnable EQU $261 ; Sound enabled? [byte]
-
- ; Event Record Definition
-
- evtMax EQU $1E ; maximum number of events in buffer
-
- ; Heap Zone header
-
- spare1 EQU $2C ; unused spare [long]
-
-
- ; Mouse/Keyboard
-
- Tocks EQU $173 ; Lisa sub-tick count [byte]
-
- ;Chooser
-
- ChooserBits EQU $946 ; bit 7 = 0, don't run; bit 6 = 0, gray out Appletalk
-
-
-
- ; Driver Status record definition
-
- dsQType EQU $A ; not used [word]
- dsNeedsFlush EQU $13 ; reserved [byte]
-
- ;This variable was named RetryCount in SONYEqu
-
- SONYRetry EQU 5
- SonyVars EQU $134 ; 3-1/2 disk driver vars [pointer]
- DskRtnAdr EQU $124 ; temp for disk driver [pointer]
- PollRtnAddr EQU $128 ; 'other' driver locals [pointer]
- PWMValue EQU $138 ; current PWM value [word]
- PollStack EQU $13A ; SCC poll data start stack location [pointer]
- PollProc EQU $13E ; SCC poll data procedure [pointer]
- DiskVars EQU $222 ; Disk driver variables [62 bytes]
-
-
- LastPGlobal EQU $954 ; address of last printer global
-
- ; QuickDraw Glue Vectors
-
- JHideCursor EQU $800
- JShowCursor EQU $804
- JShieldCursor EQU $808
- JScrnAddr EQU $80C
- JScrnSize EQU $810
- JInitCrsr EQU $814
- JSetCrsr EQU $818
- JCrsrObscure EQU $81C
- JUpdateProc EQU $820
- LGrafJump EQU $824
- JSwapFont EQU $8E0 ; jump entry for FMSwapFont [long]
- JFontInfo EQU $8E4 ; jump entry for FMFontMetrics [long]
-
- ; Miscellaneous Globals
-
- SysCom EQU $100 ; start of system communication area
- DispatchTab EQU $400 ; A-Trap dispatch table [1024 bytes]
- OSTable EQU $0400 ; 256 longs, up to $800, where old table of 512 words was
- toolDisp EQU 10 ; bit #10 distinguishes Tool/OS Get/Set Trap address
- oldDisp EQU 9 ; bit #9 distinguishes Old/New trap numbering
- ; moved HeapStart equate to hwequ file <C1/14Apr86>
- ; moved DoEject equate to hwequ file <C1/14Apr86>
-
- JShell EQU $212 ; journaling shell state [wprd]
- MacJmp EQU $120 ; MACSBUG jumptable [pointer]
- MacJmpFlag EQU $BFF ; MacsBug flag [byte] <v1.6>
- FileVars EQU $340 ; file system vars [184 bytes]
- LoadVars EQU $900 ; loader variables [68 bytes]
- LastLGlobal EQU $944 ; address past last loader global
- CoreEditVars EQU $954 ; core edit variables [12 bytes]
- ScreenVars EQU $292 ; Screen driver variables [8 bytes]
- SoundVars EQU $262 ; Sound driver variables [32 bytes]
- BootGlobPtr equ $DDC ; ptr to BootGlobs record at top of memory <2.9><3.2><3.3>
-
- ;_______________________________________________________________________
- ;
- ; Toolbox Equates -- These equates supplement the high-level equates for the
- ; Macintosh toolbox software in ToolEqu.a. These equates are private
- ; to Apple Computer, Inc. and should be used solely for building system
- ; software.
- ;
- ;_______________________________________________________________________
-
- DeskPort EQU $9E2 ; Desk grafPort (Whole screen) [pointer]
-
- ;_______________________________________________________________________
- ;
- ; QuickDraw Equates -- This file supplements the public equates for QuickDraw.
- ; found in the file QuickEqu.a These equates are private
- ; to Apple Computer, Inc. and should be used solely for building system
- ; software.
- ;
- ;_______________________________________________________________________
-
- symbols EQU 0
- forMac EQU 1
-
- ;for Mac+ Only - 2-way comm cmd
-
- rDSync EQU 0 ; sync up w/each other
-
- ; command byte from nub to MPS
-
- rDSysErr EQU 1 ; system error
- rDTrapCall EQU 2 ; trap call
- rDDta EQU 3 ; data comin' down the road
-
- ; command byte from MPS to nub
-
- rDGetN EQU 1 ; GetNBytes
- rDSetN EQU 2 ; SetNBytes
- rDCallProc EQU 3 ; CallProc
- rDSetAtrap EQU 4 ; SetATrap
- rDResume EQU 5 ; Resume execution
-
- ; end Mac+ only
-
-
- FlEvtMask EQU $25E ; (word) mask of allowable events to flush at FlushEvents.
- TrapAgain EQU $B00 ; use 4 bytes here for another trap
- PWMBuf1 EQU $B0A ; (long) PWM buffer ptr
- BootMask EQU $B0E ; (word) needed during boot
- AtalkHk1 EQU $B14 ; (long) Appletalk hook
- AtalkHk2 EQU $B18 ; (long) Appletalk hook
- UnSwitchedFlags equ $B20 ; (byte) special flags, not switched by multifinder <3.3>
- usRelTaskRun equ 7 ; bit 7=1 if Reliability Mgr mtbf task NOT installed <3.3>
- SwitchedFlags equ $B21 ; (byte) special flags, switched by multifinder <3.3>
- SCSIFlag EQU $B22 ; (word) Configuration Flag for SCSI
- HWCfgFlags EQU SCSIFlag ; (word) HW Configuration flags
- ; bit 15 - SCSI port present
- ; bit 14 - New Clock Chip Present
- ; bit 13 - Extra Parameter Ram Valid at boottime.
-
- BtDskRfn EQU $B34 ; (word) refnum for boot drive driver refnum
- BootTmp8 EQU $B36 ; (8bytes) temp space needed by StartBoot
- T1Arbitrate EQU $B3F ; (byte) $FF if Timer T1 up for grabs.
- RMGRHiVars EQU $B80 ; $B80-$BFF are switched vars
- ; RMGR vars extend $B80 through $B9F
-
- NewUnused EQU $BC0 ; (word) - used to be FlEvtMask
- FmtDefaults EQU 52+$36A ; ptr to formatting defs (TFSVars + 52) [long]
-
- ; addresses of TE hooks installed in trap table
-
- TETrimMeasure EQU (4*253+OSTable) ; trimMeasure hook
- TEFindLine EQU (4*255+OSTable) ; findLine hook
- JBlockMove EQU $4B8 ; Special equate for OUR HeapGuts Jump Table
- JInsTime EQU (600-512)*4+OSTable ;
- JRmvTime EQU (601-512)*4+OSTable ;
- JPrimeTime EQU (602-512)*4+OSTable ;
- JADBop EQU ($7C*4)+OSTable ; OS trap table entry for _ADBop
- JIOPMsgRequest EQU ($87*4)+OSTable ; OS trap table entry for _IOPMsgRequest
- JLg2Phys EQU (703-512)*4+OSTable ;
- JFlushCache EQU (704-512)*4+OSTable ;
- JGetBlock EQU (705-512)*4+OSTable ;
- JMarkBlock EQU (706-512)*4+OSTable ;
- JRelBlock EQU (707-512)*4+OSTable ;
- JTrashBlocks EQU (708-512)*4+OSTable ;
- JTrashVBlks EQU (709-512)*4+OSTable ;
- JCacheWrIP EQU (710-512)*4+OSTable ;
- JCacheRdIP EQU (711-512)*4+OSTable ;
-
-
- JBasicIO EQU (712-512)*4+OSTable ;
- JRdBlocks EQU (713-512)*4+OSTable ;
- JWrBlocks EQU (714-512)*4+OSTable ;
- JSetUpTags EQU (715-512)*4+OSTable ;
- JBTClose EQU (716-512)*4+OSTable ;
- JBTDelete EQU (717-512)*4+OSTable ;
- JBTFlush EQU (718-512)*4+OSTable ;
- JBTGetRecord EQU (719-512)*4+OSTable ;
- JBTInsert EQU (720-512)*4+OSTable ;
- JBTOpen EQU (721-512)*4+OSTable ;
- JBTSearch EQU (722-512)*4+OSTable ;
- JBTUpdate EQU (723-512)*4+OSTable ;
- JGetNode EQU (724-512)*4+OSTable ;
- JRelNode EQU (725-512)*4+OSTable ;
- JAllocNode EQU (726-512)*4+OSTable ;
- JFreeNode EQU (727-512)*4+OSTable ;
- JExtBTFile EQU (728-512)*4+OSTable ;
- JDeallocFile EQU (729-512)*4+OSTable ;
- JExtendFile EQU (730-512)*4+OSTable ;
- JTruncateFile EQU (731-512)*4+OSTable ;
- JCMSetUp EQU (732-512)*4+OSTable ;
- JDtrmV1 EQU (734-512)*4+OSTable ;
- JBlkAlloc EQU (735-512)*4+OSTable ;
- JBlkDeAlloc EQU (736-512)*4+OSTable ;
- JFileOpen EQU (737-512)*4+OSTable ;
- JPermssnChk EQU (738-512)*4+OSTable ;
- JFndFilName EQU (739-512)*4+OSTable ;
- JRfNCall EQU (740-512)*4+OSTable ;
- JAdjEOF EQU (741-512)*4+OSTable ;
-
- JFileClose EQU (745-512)*4+OSTable ; $7a4 <dnf v2.6>
- JFileRead EQU (746-512)*4+OSTable ; $7a8 <dnf v2.6>
- JFileWrite EQU (747-512)*4+OSTable ; $7ac <dnf v2.6>
-
- JClkNoMem EQU (595-512)*4+OSTable ;vector for clock
-
-
- JSegStack EQU (760-512)*4+OSTable ;vector for segment loader
-
- ; vectors for RMGR low levels routines
- JSuperLoad EQU (761-512)*4+OSTable ;
- JCmpFrm EQU (762-512)*4+OSTable ;
- JNewMap EQU (763-512)*4+OSTable ;
- JCheckLoad EQU (764-512)*4+OSTable ;
-
- JRMgrStdEntry EQU ($A6*4)+OSTable ;vector for standard entry routine
- JRMgrStdExit EQU ($A7*4)+OSTable ;vector for standard exit routine
-
-
- ;_______________________________________________________________________
- ;
- ; heap flags
-
- checking EQU 0 ;check arguments and data structures
- statistics EQU 0 ;gather statistics on usage
- robust EQU 0 ;enables super-robust internal checks
- countMPs EQU 0 ;enables counting of master pointers
- dfltFlags EQU 0 ;Checking is on when zone is init'd
- nOSTable EQU $0400 ; 256 longs, up to $800
- JMtCheck EQU ($AF)*4+nOSTable ; ($A0AF) $0400 is n/OSTable
- JCheckReMount EQU ($B0)*4+nOSTable ; ($A0B0) $0400 is n/OSTable
- JDtrmV2 EQU ($B1)*4+nOSTable ; ($A0B1) $0400 is n/OSTable
- JFindDrive EQU ($B2)*4+nOSTable ; ($A0B2) $0400 is n/OSTable
- JFClose EQU ($B3)*4+nOSTable ; ($A0B3) $0400 is n/OSTable
- JFlushMDB EQU ($B4)*4+nOSTable ; ($A0B4) $0400 is n/OSTable
- JGoDriver EQU ($B5)*4+nOSTable ; ($A0B5) $0400 is n/OSTable
- JWaitUntil EQU ($B6)*4+nOSTable ; ($A0B6) $0400 is n/OSTable
- JSyncWait EQU ($B7)*4+nOSTable ; ($A0B7) $0400 is n/OSTable
- JSoundDead EQU ($B8)*4+nOSTable ; ($A0B8) $0400 is n/OSTable
- JDisptch EQU ($B9)*4+nOSTable ; ($A0B9) $0400 is n/OSTable
- ;JStartinit EQU ($B9)*4+nOSTable ; ($A0B9) $0400 is n/OSTable <C681><C811>
- JIAZInit EQU ($BA)*4+nOSTable ; ($A0BA) $0400 is n/OSTable
- JIAZPostInit EQU ($BB)*4+nOSTable ; ($A0BB) $0400 is n/OSTable
- JLaunchInit EQU ($BC)*4+nOSTable ; ($A0BC) $0400 is n/OSTable
- JCacheFlush EQU ($BD)*4+nOSTable ; ($A0BD) $0400 is n/OSTable
- JStripAddress EQU ($55)*4+nOSTable ; ($A055) $0400 is n/OSTable <v1.7>
- JjSwapMMU EQU ($5D)*4+nOSTable ; ($A05D) $0400 is n/OSTable <v2.1>
- JTranslate24to32 EQU ($91)*4+nOSTable ; ($A091) $0400 is n/OSTable <v3.4>
- XToolTable EQU ($99)*4+nOSTable ; ($A099) $0400 is n/OSTable <11>
-
- ;_______________________________________________________________________
- ;
- ; addresses of TE hooks installed in trap table for new color text edit <C144>
-
- JPixel2Char EQU (742-512)*4+nOSTable ; ($A0E6) $0400 is nOSTable
- JChar2Pixel EQU (743-512)*4+nOSTable ; ($A0E7) $0400 is nOSTable
- JHiliteText EQU (744-512)*4+nOSTable ; ($A0E8) $0400 is nOSTable
-
- ;_______________________________________________________________________
- ;
- ;tfs vectors <A281>
-
- JUpdAltMDB EQU ($ED)*4+nOSTable ; ($A0ED) $0400 is n/OSTable
- JCkExtFS EQU ($EE)*4+nOSTable ; ($A0EE) $0400 is n/OSTable
- JDTrmV3 EQU ($EF)*4+nOSTable ; ($A0EF) $0400 is n/OSTable
- JBMChk EQU ($F0)*4+nOSTable ; ($A0F0) $0400 is n/OSTable
- JTstMod EQU ($F1)*4+nOSTable ; ($A0F1) $0400 is n/OSTable
- JLocCRec EQU ($F2)*4+nOSTable ; ($A0F2) $0400 is n/OSTable
- JTreeSearch EQU ($F3)*4+nOSTable ; ($A0F3) $0400 is n/OSTable
- JMapFBlock EQU ($F4)*4+nOSTable ; ($A0F4) $0400 is n/OSTable
- JXFSearch EQU ($F5)*4+nOSTable ; ($A0F5) $0400 is n/OSTable
- JReadBM EQU ($F6)*4+nOSTable ; ($A0F6) $0400 is n/OSTable
-
- bcMask EQU $00FFFFFF ; Mask for the 24 bit Byte Count
- GrafBegin EQU $800 ; graf global area
- GrafEnd EQU $8F2 ; end of graphics globals
-
- ENDIF ;end exclusion of private information
-
- ; Offsets into boot blocks
-
- bbID EQU 0 ; (word) offset to boot blocks ID
- bbEntry EQU 2 ; (contains BRA.S) entrypoint to boot blocks
- bbVersion EQU 6 ; (word) version number
- bbPageFlags EQU 8 ; (word) page 2 usage flags
- bbSysName EQU $0A ; system resource code file name (byte length + 0-15 chars)
- bbShellName EQU $1A ; system shell file name ('Finder')
- bbDbg1Name EQU $2A ; debugger file name (first load)
- bbDbg2Name EQU $3A ; debugger file name (second load)
- bbScreenName EQU $4A ; boot screen file name
- bbHelloName EQU $5A ; startup program file name
- bbScrapName EQU $6A ; system scrap file name
- bbCntFCBs EQU $7A ; (word) # of FCBs to allocate (determines max open files)
- bbCntEvts EQU $7C ; (word) # of event queue elements to allocate
- bb128KSHeap EQU $7E ; size of system heap on a 128K Mac (no longer used)
- bb256KSHeap EQU $82 ; size of system heap on a 256K Mac (no longer used)
- bb512KSHeap EQU $86 ; size of system heap on a 512K Mac
- bbSysHeapSize EQU $86 ; (long) absolute size of the system heap (for all machines).
- ; (word) unused - reserved
- bbSysHeapExtra EQU $8C ; (long) minimum additional system heap space required.
- bbSysHeapFract EQU $90 ; (long) fraction of memory available to be used for sys heap.
-
-
- ; The version number of the boot blocks affects the interpretation of the system heap size:
- ;
- ; if (BBVersion) <= BBOldVers then
- ; System heap size becomes DefSysHeapSize (see HWEqu).
- ;
- ; if BBOldVers < (BBVersion) < BBNewVers then
- ; if (BBVersion) = execBBvers then
- ; Executes boot blocks starting at BBEntry.
- ; System heap size becomes (BBSysHeapSize) (if it isn't already bigger).
- ;
- ; if BBNewBit is set in (BBVersion) then
- ; if BBExecBit is set then
- ; Executes boot blocks starting at BBEntry.
- ; if BBRelBit is cleared then
- ; System heap size becomes (BBSysHeapSize) (if it isn't already bigger)
- ; if BBRelBit is set then
- ; System heap is extended by BBSysHeapExtra + (BBSysHeapFract * (MemTop))
-
- ; Values for boot blocks.
- bbOldVers EQU $14 ; really old versions of boot blocks are <= this
- bbOldExecVers EQU 'D' ; old version for executable boot blocks
-
- ; Bits for new boot blocks:
- bbNewBit EQU 7 ; set to indicate the use of the new format
- bbExecBit EQU 6 ; set to indicate dispatchable boot blocks
- bbRelBit EQU 5 ; set to indicate relative heap size specification
- ; bits 4 through 0 are reserved for future use by Apple and must be cleared.
-
- ; Corresponding values
- bbNewMask EQU $80 ; new boot blocks use #'s >= this
- bbExecMask EQU $40 ;
- bbRelMask EQU $20 ;
-
- ;----------------------------------------------
- ; Power Manager Data Structures
-
- pmCommand EQU 0 ;Power manager parameter block
- pmLength EQU pmCommand+2 ;Power manager parameter block
- pmSBuffer EQU pmLength+2 ;Power manager parameter block
- pmRBuffer EQU pmSBuffer+4 ;Power manager parameter block
- pmData EQU pmRBuffer+4
- pmBlkSize EQU pmData+4
-
- ; Power Manager Commands
-
- powerCntl EQU $10 ;Power Manager parameter block - Power/clock control
- powerRead EQU $18 ;Power Manager parameter block - Power/clock control
- pMgrADB EQU $20 ;Power Manager parameter block - Apple Desktop Bus
- pMgrADBoff EQU $21 ;Power Manager parameter block - Apple Desktop Bus
- readADB EQU $28 ;Power Manager parameter block - Apple Desktop Bus
- pMgrADBInt EQU $2F ;Power Manager parameter block - Apple Desktop Bus
- timeWrite EQU $30 ;Power Manager parameter block - Clock/parameter ram
- pramWrite EQU $31 ;Power Manager parameter block - Clock/parameter ram
- xPramWrite EQU $32 ;Power Manager parameter block - Clock/parameter ram
- timeRead EQU $38 ;Power Manager parameter block - Clock/parameter ram
- pramRead EQU $39 ;Power Manager parameter block - Clock/parameter ram
- xPramRead EQU $3A ;Power Manager parameter block - Clock/parameter ram
- contrast EQU $40 ;Power Manager parameter block - Screen contrast control
- modemSet EQU $50 ;Power Manager parameter block - Internal modem setup
- modemRead EQU $58 ;Power Manager parameter block - Internal modem setup
- batteryRead EQU $68 ;Power Manager parameter block - Battery/charger level and status
- batteryNow EQU $69 ;Power Manager parameter block - Battery/charger instantaneous level and status
- SetOneSecInt EQU $70 ;Power Manager parameter block - set one-second interrupt <t3> djw
- PmgrPWRoff EQU $7E ;Power Manager parameter block - Power off
- sleepReq EQU $7F ;Power Manager parameter block - Sleep request
- readINT EQU $78 ;Power Manager parameter block - Read power manager interrupt flag register
- sleepAck EQU $70 ;Power Manager parameter block - Sleep acknowledge
- timerSet EQU $80 ;Power Manager parameter block - Wake Up Timer
- timerRead EQU $88 ;Power Manager parameter block - Wake Up Timer
- soundSet EQU $90 ;Power Manager parameter block - Sound power control
- SetDFAC EQU $91 ;Power Manager parameter block - Set DFAC register
- soundRead EQU $98 ;Power Manager parameter block - Sound power state
- ReadDFAC EQU $99 ;Power Manager parameter block - Read DFAC register
- resetCPU EQU $D0 ;Power Manager parameter block - Reset the CPU
- readAtoD EQU $D8 ;Power Manager parameter block - Read A/D channel
- writePmgrRAM EQU $E0 ;Power Manager paramater block - Write to internal PMgr Ram
- readPmgrRAM EQU $E8 ;Power Manager parameter block - Read the internal PMgr Ram
- readPmgrVers EQU $EA ;Power Manager parameter block - Read the power manager version number
- PmgrSelfTest EQU $EC ;Power Manager parameter block - Power Manager Self Test
- PmgrSoftReset EQU $EF ;Power Manager parameter block - Soft Reset of the Power Manager
- sleepSig EQU 'MATT' ;Sleep signature word
-
-
- ;Power control/clock equates (command $10)
-
- iwmOn EQU $81 ;Disk controller clock
- iwmOff EQU $01 ;Disk controller clock
- sccOn EQU $82 ;SCC chip clock
- sccOff EQU $02 ;SCC chip clock
- hdOn EQU $84 ;Hard disk power
- hdOff EQU $04 ;Hard disk power
- modemOn EQU $88 ;Internal modem power
- modemOff EQU $08 ;Internal modem power
- serOn EQU $90 ;Serial output drivers power
- serOFF EQU $10 ;Serial output drivers power
- sndLtchClear EQU $A0 ;Sound latch clear
- sndLtchRelease EQU $20 ;Sound latch release
- minus5on EQU $C0 ;Minus 5 volts power
- minus5off EQU $40 ;Minus 5 volts power
- ascOn EQU $A0 ;Sound chip clock and analog power
- ascOff EQU $20 ;Sound chip clock and analog power
- alloff EQU $5B ;Turn off everything except hard disk, sound latch ready
- soundOff EQU $00 ;Sound power off
- soundOn EQU $02 ;Sound power on
- sndClrLtch EQU $02 ;Sound power on, clear sound power latch
- sndOnClrLtch EQU $03 ;Sound power on, clear sound power latch
-
-
- ;Interrupt flag register usage (command $78)
-
- adbIntFlag EQU 0 ;ADB data ready
- batIntFlag EQU 1 ;Low BATtery power
- envIntFlag EQU 2 ;ENVironmental problem
-
- ;Batter/Charger status bits
-
- HasCharger EQU 0 ;Charger connected
- ShortedBat EQU 2 ;Shorted battery condition
- LowBattery EQU 4 ;Low battery condition
- ChrgState EQU 5 ;Charger connection state change
- OverTemp EQU 6 ;High temperature condition
-
- ;Modem command bits ;
-
- ModemPwr EQU 0 ;Modem power control (1=true)
- ModemAorB EQU 1 ;Modem connection to port A or B (1=A)
- RingWakeEnable EQU 2 ;Modem ring detect wake up enable (1=true)
- ModemInstalled EQU 3 ;Modem in the slot (1=true)
- RingDetect EQU 4 ;Modem ring detect pin (1=ringing)
- ModemHook EQU 5 ;Modem on/off hook (1=off hook)
-
- ;SerialPower bits and bytes
- BypassModem EQU 0 ;Ignore pram internal modem designation (1=ignore)
- PortAorB EQU 2 ;Port A or Port B (1=port A)
- SerialOff EQU 7 ;Power on/off selector bit
-
- PortAPower EQU 4 ;Power port A command (byte version of PortAorB)
- PortBPower EQU 0 ;Power port B command
-
- ;Power manager loopcounts
- wait8us EQU $40 ;For software loop, remove later
- BootDevTicks EQU 2*60*60 ; Wait for boot device before sleep, in ticks.
-
-
- ; equates for dynamic menuList structure
- ;
- ;----- Part 1 -- regular menus
- mbResID EQU 4 ; menuBar variant offset in menuList [word]
- menu1Size EQU mbResID + 2 ; Must be = 6 forever!!!
-
- ;----- Part 2 -- hierarchical menus
- lastHMenu EQU 0 ; offset in HMenu part of dynamic menuList [word]
- menuTitleSave EQU lastHMenu + 2 ; handle to saved bits behind title rectangle [handle]
- menu2Size EQU menuTitleSave+4 ; size of HMenu entry
- menuHoH EQU 0 ; hierarchical menu [handle]
-
- ;----- Size of menuList at InitMenus time -- no menus, no hierarchical menus
- initMListSize EQU menu1Size + menu2Size
- ; equates for mbarproc's save structure created when it receives Init Msg (Msg #3)
- ;
- ;----- Header
- lastMBSave EQU 0 ; offset to last menu saved in structure [word]
- mbCustomStorage EQU lastMBSave + 2 ; private storage for custom mbarproc's [handle]
- mbItemRect EQU mbCustomStorage + 4 ; rect of currently chosen menu item [rect]
- mbMenuDelay EQU mbItemRect + 8 ; get MenuDelay from paramram and store here [byte]
- mbMenuDrag EQU mbMenuDelay + 1 ; get MenuDrag from paramram and store here [byte]
- mbUglyScroll EQU mbMenuDrag + 1 ; flag to tell whether HMenu has been brought [word]
- ; before scrolling happens
- mbIconState EQU mbUglyScroll + 2 ; Place to save NMgr icon state
- mbHeader EQU mbIconState + 2 ; size of mb save header [$14]
- ; !!!!! CAUTION: mbHeader MUST be smaller than mbEntrySize !!!!!
-
- ;----- Entry
- mbRectSave EQU 0 ; rectangle of menu on screen [8 bytes]
- mbBitsSave EQU mbRectSave + 8 ; handle to saved bits behind menu rectangle
- mbMenuDir EQU mbBitsSave + 4 ; direction menu was placed on screen,
- ; to right or left of title (if first menu)
- ; or previous menu (if hierarchical menu)
- mbMLOffset EQU mbMenuDir + 2 ; 6 byte offset of menu in menuList [word]
- mbMLHandle EQU mbMLOffset + 2 ; handle of menu in menuList
- mbTopScroll EQU mbMLHandle + 4 ; top scrolled to menu item, from global topMenuItem [word]
- mbBotScroll EQU mbTopScroll + 2 ; bottom scrolled to menu item, from global atMenuBottom [word]
- mbReserved EQU mbBotScroll + 2 ; reserved field [long]
- mbEntrySize EQU mbReserved + 4
- mbSaveSize EQU mbEntrySize*6 ; x-byte header and 5 entries of x-bytes each
- firstAltMenuCmd EQU $1B
- altMenuCmd1 EQU $1D ; itemCmd == $1D ==> unused indicator reserved for future Apple use
- altMenuCmd2 EQU $1E ; itemCmd == $1E ==> unused indicator reserved for future Apple use
- altMenuCmd3 EQU $1F ; itemCmd == $1F ==> unused indicator reserved for future Apple use
- lastAltMenuCmd EQU $1F
- mbRightDir EQU 0 ; menu went to the right (direction)
- mbLeftDir EQU 1 ; menu went to the left (direction)
- menuDelay EQU $7E ; param ram locations for user settable
- menuDrag EQU $7F ; hierarchical menu delay and drag ticks
-
-
- ENDIF ; ...already included
-